main(){int i=1;double f[50000]={0,1},t=1;while(++i<50000)f[i]=f[i-1]+(t+=2.0/i);while(scanf("%d",&i)&&i)printf("%.2lf\n",f[i]);}
